package com.jy.api.dao;

import com.jy.api.domain.BillRule;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by xiaohua on 2019/4/28.
 */
public interface BillRuleDao extends CrudRepository<BillRule,Integer>{


    List<BillRule> findAllByStoreIdAndEnabled(String storeId,boolean enalbed);


    List<BillRule> findByIdInAndStoreIdAndEnabled(List<Integer> strings,String storeId,boolean enabled);


    BillRule findByStoreIdAndName(String toStoreId, String ruleName);
}
